<input type="date" class="form-control datepicker {$form.class}" name="{$form.name}" value="<php>if($form['value']){echo date('Y-m-d',$form['value']);}else{echo date('Y-m-d');}</php>" {$form.attr}>
